﻿<Page x:Class="hr_1.View.Position_show_position"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:src="clr-namespace:hr_1"
      mc:Ignorable="d" 
      Title="" Height="Auto" Width="Auto" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" d:DesignHeight="462" d:DesignWidth="593" DataContext="{Binding}">
    <Page.Resources>
        <src:HRDataContext x:Key="hrData"/>
    </Page.Resources>
    <Grid>
        <TabControl>
            <TabItem Name="pos_generic_info" Header="Общая информация">
                <Grid>
                    <DataGrid HorizontalAlignment="Left" Margin="16,24,0,0" Name="dataGrid_positions" 
                              VerticalAlignment="Top" Width="Auto" 
                              AutoGenerateColumns="False" >
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Должность"  Binding="{Binding position,  Mode=TwoWay}"/>
                            <DataGridTextColumn Header="Подразделение"  Binding="{Binding department, Mode=TwoWay}"/>
                            <DataGridTextColumn Header="Группа"  Binding="{Binding position_group, Mode=TwoWay}"/>
                            <DataGridTextColumn Header="Ставка" Binding="{Binding rate, Mode=TwoWay}"/>
                        </DataGrid.Columns>                        
                    </DataGrid>
                    <Button Content="Сохранить изменения" HorizontalAlignment="Right" Margin="0,0,83,34" Name="save_change" Width="Auto" Click="Save_Click" Height="23" VerticalAlignment="Bottom" />
                    <Button Content="Отмена" HorizontalAlignment="Right" Margin="0,0,26,34" Name="cancel" Width="Auto" Click="Cancel_Click" Height="23" VerticalAlignment="Bottom" />
                </Grid>
            </TabItem>
        </TabControl>
    </Grid>    
</Page>
